import type { DataTableColumns } from 'naive-ui';
import { NTabs,NCard,NTabPane,NTreeSelect,NInput,NButton,NSelect } from 'naive-ui';
export interface RowData {
    NODE_ACTION_NO: string
    NODE_ACTION_NICK_NAME: string
    NODE_ACTION_VALUE:string
    NODE_ACTION_OPER:string
}
//自定义模版初始化起草人审批动作数据
export function createData(): RowData[] {
    return [
      {
        NODE_ACTION_NO: "circulate",
        NODE_ACTION_NICK_NAME: '传阅',
        NODE_ACTION_VALUE:'',
        NODE_ACTION_OPER:''
      }
    ]
  }
   //自定义模版时初始化审批人审批动作数据
export  function createRunData(): RowData[] {
    return [
      {
        NODE_ACTION_NO: "reject",
        NODE_ACTION_NICK_NAME: '驳回',
        NODE_ACTION_VALUE:'',
        NODE_ACTION_OPER:''
      },
      {
        NODE_ACTION_NO: "communicate",
        NODE_ACTION_NICK_NAME: '沟通',
        NODE_ACTION_VALUE:'',
        NODE_ACTION_OPER:''
      }
    ]
  }
  //自定义模版时初始化历史审批动作数据
  export function createHisData(): RowData[] {
    return [
      {
        NODE_ACTION_NO: "circulate",
        NODE_ACTION_NICK_NAME: '传阅',
        NODE_ACTION_VALUE:'',
        NODE_ACTION_OPER:''
      }
    ]
  }
  export  const defaultColumns :DataTableColumns<RowData> =[
    {
      title: '',
      key:'NODE_ACTION_NO',
      render(row) {
        return '';
      }
    },
    {
      title: '操作名称',
      key: 'NODE_ACTION_NICK_NAME'
    },
    {
      title: '重命名',
      key: 'NODE_ACTION_NICK_NAME'
    }
  ]
  
  export interface conditionRowData {
    key:string
    parentId: string
    operType: string
    businessSelected:string
    businessRealtion:string
    businessValue:string
    logicOperation:string
}

export  function createConditionRowData(): conditionRowData[] {
  return [
    ]
}